package com.ruoyi.doctordisease.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.doctordisease.mapper.DoctorDiseaseMapper;
import com.ruoyi.doctordisease.domain.DoctorDisease;
import com.ruoyi.doctordisease.service.IDoctorDiseaseService;

/**
 * 【医生病种中间表】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-02
 */
@Service
public class DoctorDiseaseServiceImpl implements IDoctorDiseaseService 
{
    @Autowired
    private DoctorDiseaseMapper doctorDiseaseMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param doctorId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public DoctorDisease selectDoctorDiseaseByDoctorId(Long doctorId)
    {
        return doctorDiseaseMapper.selectDoctorDiseaseByDoctorId(doctorId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param doctorDisease 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<DoctorDisease> selectDoctorDiseaseList(DoctorDisease doctorDisease)
    {
        return doctorDiseaseMapper.selectDoctorDiseaseList(doctorDisease);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param doctorDisease 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertDoctorDisease(DoctorDisease doctorDisease)
    {
        return doctorDiseaseMapper.insertDoctorDisease(doctorDisease);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param doctorDisease 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateDoctorDisease(DoctorDisease doctorDisease)
    {
        return doctorDiseaseMapper.updateDoctorDisease(doctorDisease);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param doctorIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDoctorDiseaseByDoctorIds(Long[] doctorIds)
    {
        return doctorDiseaseMapper.deleteDoctorDiseaseByDoctorIds(doctorIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param doctorId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDoctorDiseaseByDoctorId(Long doctorId)
    {
        return doctorDiseaseMapper.deleteDoctorDiseaseByDoctorId(doctorId);
    }
}
